home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 October / CHIP Turkiye Ekim 2000.iso / prog / naps / 04 / setup.exe / Gnucleus / ViewTransfer.h < prev   
C/C++ Source or Header  |  2000-07-15  |  3KB  |  99 lines

  1. #if !defined(AFX_VIEWTRANSFER_H__3C289741_2843_11D4_ACF2_00A0CC533D52__INCLUDED_)
  2. #define AFX_VIEWTRANSFER_H__3C289741_2843_11D4_ACF2_00A0CC533D52__INCLUDED_
  3.  
  4. #if _MSC_VER > 1000
  5. #pragma once
  6. #endif // _MSC_VER > 1000
  7. // ViewTransfer.h : header file
  8. //
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CViewTransfer form view
  12.  
  13. #ifndef __AFXEXT_H__
  14. #include <afxext.h>
  15. #endif
  16.  
  17. #include <string>
  18. #include "ListCtrlEx.h"
  19.  
  20. class CViewTransfer : public CFormView
  21. {
  22. protected:
  23.     CViewTransfer();           // protected constructor used by dynamic creation
  24.     DECLARE_DYNCREATE(CViewTransfer)
  25.  
  26. // Form Data
  27. public:
  28.     //{{AFX_DATA(CViewTransfer)
  29.     enum { IDD = IDD_VIEW_TRANSFER };
  30.     CButton    m_CancelDown;
  31.     CButton    m_CancelUp;
  32.     CButton    m_btnPause;
  33.     CStatic    m_stcUploads;
  34.     CStatic    m_stcDownloads;
  35.     CListCtrlEx    m_lstUploads;
  36.     CListCtrlEx    m_lstDownloads;
  37.     //}}AFX_DATA
  38.  
  39. // Attributes
  40. public:
  41.     UINT DownloadTimer;
  42.     UINT UploadTimer;
  43.  
  44. // Operations
  45. public:
  46.     void NewDownload(QueryItem, SOCKET sock = NULL);
  47.     void NewUpload(CString, SOCKET sock);
  48.  
  49.     void NewPushDownload(std::string& pushString, SOCKET sock);
  50.  
  51.     CGnuTransfer* GetQueryItem(int row, char);
  52.  
  53. // Overrides
  54.     // ClassWizard generated virtual function overrides
  55.     //{{AFX_VIRTUAL(CViewTransfer)
  56.     public:
  57.     virtual void OnInitialUpdate();
  58.     protected:
  59.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  60.     //}}AFX_VIRTUAL
  61.  
  62. // Implementation
  63. protected:
  64.     void m_UpdateDownloadButtons(void);
  65.     bool m_bItemsChanged;
  66.     void m_SaveAllTransfers(void);
  67.     void m_ReadSavedTransfers(void);
  68.     void RemoveRow(int row, char);
  69.     virtual ~CViewTransfer();
  70.  
  71.     CGnucleusDoc *Doc;
  72.  
  73.     int UpdateRate;
  74.     int FiveSecs;
  75.  
  76. #ifdef _DEBUG
  77.     virtual void AssertValid() const;
  78.     virtual void Dump(CDumpContext& dc) const;
  79. #endif
  80.  
  81.     // Generated message map functions
  82.     //{{AFX_MSG(CViewTransfer)
  83.     afx_msg void OnSize(UINT nType, int cx, int cy);
  84.     afx_msg void OnTimer(UINT nIDEvent);
  85.     afx_msg void OnButtonCancelDown();
  86.     afx_msg void OnButtonCancelUp();
  87.     afx_msg void OnButtonPause();
  88.     afx_msg void OnItemchangedListDownloads(NMHDR* pNMHDR, LRESULT* pResult);
  89.     //}}AFX_MSG
  90.     DECLARE_MESSAGE_MAP()
  91. };
  92.  
  93. /////////////////////////////////////////////////////////////////////////////
  94.  
  95. //{{AFX_INSERT_LOCATION}}
  96. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  97.  
  98. #endif // !defined(AFX_VIEWTRANSFER_H__3C289741_2843_11D4_ACF2_00A0CC533D52__INCLUDED_)
  99.